-- GENERATED SPELL FOR [Ambassador Solannas] --


function spell0_20163(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20163', 3000, 1)
end

function spell1_20163(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_20163', 8304, 1)
end

function Sorts_20163(pUnit, Event)
local choix_sorts_20163 = math.random(0, 1)
if choix_sorts_20163 == 0 then
pUnit:RegisterEvent('spell0_20163', 1, 1)
end
if choix_sorts_20163 == 1 then
pUnit:RegisterEvent('spell1_20163', 1, 1)
end
end

function mob20163_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20163', math.random(1500, 3000), 1)
end

function mob20163_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20163_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20163_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20163, 1, 'mob20163_Action')
RegisterUnitEvent(20163, 2, 'mob20163_Leave')
RegisterUnitEvent(20163, 3, 'mob20163_Kill')
RegisterUnitEvent(20163, 4, 'mob20163_Die')
